<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./fontawesome/css/all.css">

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        body {
            font: 12px/1.5 Microsoft YaHei;
        }
        
        .top-bar-wrapper {
            background-color: #E3e4e5;
            height: 30px;
            border-bottom: 1px red #DDD;
            line-height: 30px;
        }
        
        .top-bar {
            width: 600px;
            margin: 0 auto;
        }
        
        .location {
            float: left;
        }
        
        .shortcut {
            float: right;
        }
        
        .shortcut li,
        .shortcut line {
            float: left;
            list-style-type: none;
        }
        
        .top-bar a,
        .top-bar span,
        .top-bar i {
            color: #999;
            text-decoration: none;
        }
        
        .current-city {
            padding: 0 10px;
            z-index: 1;
            border: 1px solid transparent;
        }
        
        .location:hover .current-city {
            padding: 0 10px;
            background-color: white;
            border: 1px solid rgb(204, 204, 204);
            border-bottom: none;
            /* padding-bottom: 1px; */
            position: relative;
        }
        
        .current-city i {
            width: 10px;
            height: 10px;
            color: red
        }
        
        .top-bar a:hover {
            color: #f10125;
        }
        
        .shortcut .line {
            width: 1px;
            height: 10px;
            background-color: #999;
            margin: 10px;
        }
        
        .location .city-list {
            width: 200px;
            height: 436px;
            background-color: white;
            border: 1px solid rgb(204, 204, 204);
            display: none;
            position: absolute;
            top: 30px;
            box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
        }
        
        .location:hover .city-list {
            display: block;
        }
    </style>
</head>

<body>

    <div class="top-bar-wrapper">
        <div class="top-bar">
            <div class="location">
                <div class="current-city">
                    <i class="fa-solid fa-location-dot"></i>
                    <a href="javascript:;">北京</a>

                </div>
                <div class="city-list">

                </div>

            </div>
            <ul class="shortcut">
                <li>
                    <a href="javascript:;">你好，请登录</a>
                    <a href="javascript:;">免费注册</a>

                </li>
                <li class="line"></li>
                <li>
                    <a href="javascript:;">我的订单</a>
                </li>


                <li class="line"></li>
                <li>
                    <a href="javascript:;">免费注册</a>
                </li>

                <li class="line"></li>
                <li>
                    <a href="javascript:;">我的京东</a>
                </li>



            </ul>
        </div>
    </div>
</body>

</html>